package com.ruoyi.slow.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 每月滞销值对象 slow
 *
 * @author zjh
 * @date 2022-06-14
 */

public class Slow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 每月预警主键 */
    private Long slowId;

    /** 公司主键 */
    @Excel(name = "公司主键")
    private Long companyId;

    /** 产品主键 */
    @Excel(name = "产品主键")
    private Long productId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String productType;

    /** 预警值 */
    @Excel(name = "预警值")
    private int slowNum;

    public Long getWarehousingNum() {
        return warehousingNum;
    }

    public void setWarehousingNum(Long warehousingNum) {
        this.warehousingNum = warehousingNum;
    }

    /** 预警值 */
    @Excel(name = "库存值")
    private Long warehousingNum;


    /** 创建人 */
    @Excel(name = "创建人")
    private String creatBy;

    /** 创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    /** 公司名称 */
    private String companyName;

    /** 产品名称 */
    private String productName;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    private int num;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCreatBy() {
        return creatBy;
    }

    public void setCreatBy(String creatBy) {
        this.creatBy = creatBy;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }


    public void setSlowId(Long slowId)
    {
        this.slowId = slowId;
    }

    public Long getSlowId()
    {
        return slowId;
    }
    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId()
    {
        return companyId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }
    public void setSlowNum(int slowNum)
    {
        this.slowNum = slowNum;
    }

    public int getSlowNum()
    {
        return slowNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("slowId", getSlowId())
                .append("companyId", getCompanyId())
                .append("productId", getProductId())
                .append("productType", getProductType())
                .append("slowNum", getSlowNum())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
